package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

/**
 * 药铺：种植日志(收获时记录)
 */
@FieldTypeAnnotation(tableName = "t_l_ck_drug_store_plant", desc = "药铺种植日志", autoSave = true, uploadCk = true)
public class LogDrugStorePlant extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "土地")
    private int landId;

    @FieldTypeAnnotation(desc = "药材")
    private int drugId;

    @FieldTypeAnnotation(desc = "1:手动种植；2:自动种植")
    private int type;

    @FieldTypeAnnotation(desc = "种植时间")
    private Date plantTime;

    @FieldTypeAnnotation(desc = "成熟时间")
    private Date matureTime;

    public LogDrugStorePlant(long userId, int landId, int drugId, int type, Date plantTime, Date matureTime) {
        this.userId = userId;
        this.landId = landId;
        this.drugId = drugId;
        this.type = type;
        this.plantTime = plantTime;
        this.matureTime = matureTime;
    }

    public long getUserId() {
        return userId;
    }
}
